package com.ruoyi.common.core.domain;

import java.util.List;

/**
 * @author ：jijinwu
 * @ClassName TreeNode
 * @date ：2024/7/19 - 6:28
 * @version: V1.0
 * @slogan: 天下风云出我辈，一入代码岁月催
 * @description:
 **/
public class TreeNode {
    private Long id;
    private String name;
    private boolean checked;
    private List<TreeNode> children;


    public TreeNode() {}

    public TreeNode(Long id, String name, boolean checked, List<TreeNode> children) {
        this.id = id;
        this.name = name;
        this.checked = checked;
        this.children = children;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isChecked() {
        return checked;
    }

    public void setChecked(boolean checked) {
        this.checked = checked;
    }

    public List<TreeNode> getChildren() {
        return children;
    }

    public void setChildren(List<TreeNode> children) {
        this.children = children;
    }
}

